package com.woniu.search.feign;

import com.woniu.cinema.domain.Actor;
import com.woniu.cinema.domain.Cinema;
import com.woniu.cinema.vo.MovieVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 杨光 微信号:tolryg
 * @time 14:02
 */
@FeignClient(value="cinema-service")
public interface CinemaFeign {

    @RequestMapping(value = "/cinema/movie/feign/queryMovieVoByMovieId")
    List<MovieVo> queryMovieVoByMovieId(@RequestParam("movieId") Integer movieId);
    @RequestMapping(value = "/cinema/cinema/feign/queryCinemaByCinemaId")
     List<Cinema> queryCinemaByCinemaId(@RequestParam("cinemaId") Integer cinemaId);

    @RequestMapping(value = "/cinema/actor/feign/queryActorByActorId")
     List<Actor> queryActorByActorId(@RequestParam("actorId") Integer actorId);

}
